<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:requestEncoding value="utf-8" />
<c:set var="path" value="/projectv8/" scope="application" />
<c:set var="suffix" value=".jsp" scope="application" />
<c:set var="member" value="member/" scope="application" />
<c:set var="board" value="board/" scope="application" />
<c:set var="action" value="${param.action }" />
<c:if test="${empty action }">
	<c:set var="action" value="${path }index${suffix }" />
</c:if>
<c:if test="${(action eq 'login') or (action eq 'loginok') or (action eq 'join')
				 or (action eq 'joinok') or (action eq 'myinfo') or (action eq 'logout') }">
	<c:set var="action" value="${path }${member }${action }${suffix }" />
</c:if>
<c:if test="${(action eq 'list') or (action eq 'write') or (action eq 'writeok')
				 or (action eq 'view') or (action eq 'update') or (action eq 'updateok') or (action eq 'deleteok') }">
	<c:set var="action" value="${path }${board }${action }${suffix }" />
</c:if>

<!DOCTYPE html>
<html lang="ko">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>JSP 프로젝트 v5</title>
		<link type="text/css" href="css/layout.css" rel="stylesheet" />
	</head>
	<body>
		<%@ include file="./layout/header.jspf" %>
		<%-- header --%>
		
		<jsp:include page="${action }" />
		<hr />
		컨텍스트 경로: ${action }
		<%-- content --%>
		
		 <%@ include file="./layout/footer.jspf" %>
		 <%-- footer --%>		
		 
	</body>
</html>
